<template>
	<view class="page_content">
		<web-view :style="webViewStyle" :src="webUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webViewStyle: {
				    position: 'fixed',
				    top: 0,
				    left: 0,
				    width: '100%',
				    height: '100%',
				},
				webUrl: '',
			}
		},
		onLoad(options) {
			const token = uni.getStorageSync("App-Token") 
			// http://192.168.110.18:7001/
			// https://www.real-infinity.cn/cloud-xcx
			if(options.type == 1) {
				this.webUrl = 'https://www.real-infinity.cn/cloud-xcx/#/user/cloud?Authorization='+token
			}else {
				this.webUrl = 'https://www.real-infinity.cn/cloud-xcx/#/user/abdbhcrm?Authorization='+token
			}
		},
		methods: {
			
		}
	}
</script>
<style scoped lang="scss">
</style>